package com.huaxin.common.Entity;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * @author lwjing
 * @date 2018/5/10
 * @Desc $desc$  第二层
 * Copyright HUAXIN DATA. All rights reserved.
 */
public class StationColumnSecond extends AbstractExpandableItem<StationColumnSecond> implements MultiItemEntity {

    List<StationColumnSecond> children;



    String id;//a_a_SZQYZX
    String text;//苏州区域中心
    String type;//	orgType

    //层级
    private int level;
    private int itemType;


    @Override
    public String toString() {
        return "StationColumnSecond{" +
                "children=" + children +
                ", id='" + id + '\'' +
                ", text='" + text + '\'' +
                ", type='" + type + '\'' +
                ", level=" + level + '\'' +
                ", getlevel=" + getLevel() +
                '}';
    }

    public List<StationColumnSecond> getChildren() {
        return children;
    }

    public String getId() {
        return id;
    }

    public String getText() {
        return text;
    }

    public String getType() {
        return type;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    @Override
    public int getLevel() {
        //TODO 动态更改层级
        return level;
    }

    public void setItemType(int type){
        this.itemType=type;
    }

    @Override
    public int getItemType() {
        //布局
        return itemType;
    }
}
